<div class="page-header">
    <h3>- Utilisateurs de l'application -</h3>
</div>
<div>
    <?php if (isset($users) && count($users) > 0) {
    ?>
    <table>
        <thead>
            <tr>
                <th>#ID</th>
                <th>Nom</th>
                <th>Prenom</th>
                <th>Role</th>
            </tr>
        </thead>
    <?php
        foreach ($users as $user) { ?>
        <tr>
            <td><?php echo $user->id ?></td>
            <td><?php echo $user->username ?></td>
            <td><?php echo $user->email ?></td>
            <td><?php echo $user->role_id ?></td>
            <td><?php echo anchor('user_profiles/edit/'.$user->id, 'editer')?></td>
        </tr>
    <?php } ?>
    </table>
    <?php } else { ?>
    <span style="text-align: center;font-weight: bold;">Aucun utilisateurs enregistr&eacute; dans la base</span>
    <?php }?>
</div>